﻿using DoNetDrive.Core.Command;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _8280WEBSocket.Command.Record
{
    /// <summary>
    /// 重新读取记录
    /// </summary>
    public class RereadRecord : Json.JsonCommand
    {
        /// <summary>
        /// 重新读取记录
        /// </summary>
        /// <param name="cd">通信参数</param>
        /// <param name="type">记录类型</param>
        public RereadRecord(INCommandDetail cd, Models.RecordType type) : base(cd, null)
        {
            Reply = "RereadRecord";
            mSendObject = new { cmd = Reply, recordType = type.ToString() };
            mJsonResult =(s)=> _Result = new CommandResult(s);
        }
    }
}
